



#include "mbed.h"
#include "math.h"
#include "power_Factor.h"

float calculate_Power_Factor(float phase_angle) {
    return cosf(phase_angle*M_PI/180);
}